package com.iris.live.services.data.repositories;

import com.iris.live.services.data.models.Lsh活动推送Model;
import com.iris.live.services.data.models.Lsh活动推送ModelPK;
import com.iris.live.services.data.models.Lsh活动表Model;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * Created by sxy on 2016/7/11.
 */
public interface Lsh活动推送Repository extends JpaRepository<Lsh活动推送Model, Lsh活动推送ModelPK>, JpaSpecificationExecutor<Lsh活动推送Model> {
    @Query("select a from Lsh活动推送Model a where a.活动编号=?1")
    List<Lsh活动推送Model> findByCode(int code);
}
